﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    string UrlPath = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            UrlPath = Request.RawUrl.Substring(Request.RawUrl.LastIndexOf("/") + 1, Request.AppRelativeCurrentExecutionFilePath.Length - 2);
            if (Request.QueryString["ID"].ToString() != "")
            {
                UrlPath += "?ID=" + Request.QueryString["ID"].ToString();
            }
        }
        catch (Exception ex)
        {
        }
        try
        {
            Session["PageCurrent"] = UrlPath;

//            if (Session["User"] != null)
//            {
////                txtUser.Text = Session["User"].ToString();
//            }
//            else
//            {
//                Response.Redirect("LoginApplicant.aspx");
//            }
//            if (!IsPostBack)
//            {
//                //LoadData(txtUser.Text);
//            }
        }
        catch (Exception ex)
        {
            Response.Redirect("LoginApplicant.aspx");
        }
    }
}